#if !defined(AFX_SIWINDOW_H__7AD1F548_1040_4846_8ED8_0801736403F7__INCLUDED_)
#define AFX_SIWINDOW_H__7AD1F548_1040_4846_8ED8_0801736403F7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SiWindow.h : header file
//
#include "SubclassWnd.h"

class CTabBarsWnd;

/////////////////////////////////////////////////////////////////////////////
// CSiWindow window

class CSiWindow : public CSubclassWnd
{
// Construction
public:
	CSiWindow();
	virtual ~CSiWindow();
// Attributes
public:
	void Attach(HWND hWnd);
	HWND Detach();
	void SetActive(BOOL bAvtive = TRUE);
	void SetTabbarWnd(HWND hTabWnd) { m_hTabbarWnd = hTabWnd; };
	LPCTSTR GetAssocFileName() { return m_szAssocFileName; }; 

	TCHAR m_szTitle[256];
// Operations
public:

// Implementation
public:
	virtual LRESULT WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam);

protected:
	virtual void PostNcDestroy();
	void OnDestroy();
	void OnWindowPosChanging(WINDOWPOS FAR* lpwndpos);
	void OnMDIActive(WPARAM wParam, LPARAM lParam);
	int OnGetWindowText(WPARAM wParam, LPARAM lParam);

protected:
	TCHAR m_szAssocFileName[MAX_PATH];
	HWND  m_hTabbarWnd;
	int   m_cResizeRef;  // reference counting for resize handler
	BOOL  m_bLastZoom;
	SnapOrientations m_LastOrientation;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SIWINDOW_H__7AD1F548_1040_4846_8ED8_0801736403F7__INCLUDED_)
